import request from '@/router/axios';


//根据流程类型查询编号类型，版本号类型，记录流水类型

export const findTypeByProcessType = (params) => {
	return request({
		url: '/api/blade-module/numberset/findTypeByProcessType',
		method: 'post',
		params: params
	})
}
// 部门
export const getdeptlist = (params) => {
	return request({
		url: '/api/blade-system/dept/list',
		method: 'get',
		params: params
	})
}
// 根据部门查询用户
export const getuserByDept = (params) => {
	return request({
		url: '/api/blade-user/client/user/list-by-dept',
		method: 'get',
		params: params
	})
}
// 查询所有用户
export const getAlluser = (params) => {
	return request({
		url: '/api/blade-user/list',
		method: 'get',
		params: params
	})
}
// 待办
export const getagencyTaskPage = (params) => {
	return request({
		url: '/api/blade-module/systemguifanfilesprocess/agencyTaskPage',
		method: 'get',
		params: params
	})
}
//   任务
export const completedTaskPage = (params) => {
	return request({
		url: '/api/blade-module/systemguifanfilesprocess/completedTaskPage',
		method: 'get',
		params: params
	})
}
//  岗位
export const getGangweiList = (params) => {
	return request({
		url: '/api/blade-system/post/list',
		method: 'get',
		params: params
	})
}
//  职称
export const getappellationList = (params) => {
	return request({
		url: '/api/blade-module/personnelappellation/list',
		method: 'get',
		params: params
	})
}
//  专业
export const getspecialtyList = (params) => {
	return request({
		url: '/api/blade-module/personnelspecialty/list',
		method: 'get',
		params: params
	})
}

//  人员性质
export const getnatureList = (params) => {
	return request({
		url: '/api/blade-module/personnelnature/list',
		method: 'get',
		params: params
	})
}
//  岗位人员
export const getrenyuanList = (params) => {
	return request({
		url: '/api/blade-system/renyuan/list',
		method: 'get',
		params: params
	})
}
//   采购计划表
export const getpurchaseplanList = (params) => {
	return request({
		url: '/api/blade-module/purchaseplanprocess/list',
		method: 'get',
		params: params
	})
}
//  采购计划外包服务名称
export const getoutsourcingList = (params) => {
	return request({
		url: '/api/blade-module/purchaseplanoutsourcing/list',
		method: 'get',
		params: params
	})
}
//   供应商 表接口
export const getsupplierList = (params) => {
	return request({
		url: '/api/blade-module/supplierprocesssupplier/list',
		method: 'get',
		params: params
	})
}

//   求购消息
export const getinfobuylist = (params) => {
	return request({
		url: '/api/blade-module/infobuy/list',
		method: 'get',
		params: params
	})
}
//   求购消息详情
export const getinfobuydetail = (params) => {
	return request({
		url: '/api/blade-module/infobuy/detail',
		method: 'get',
		params: params
	})
}
//   求购消息新增
export const getinfobuysave= (params) => {
	return request({
		url: '/api/blade-module/infobuy/save',
		method: 'get',
		params: params
	})
}
//   求购消息修改
export const getinfobuyupdate = (params) => {
	return request({
		url: '/api/blade-module/infobuy/update',
		method: 'get',
		params: params
	})
}

//   消息列表
export const getmsglist = (params) => {
	return request({
		url: '/api/blade-module/msg/list',
		method: 'get',
		params: params
	})
}
//  系统模板
export const filestemplate = (params) => {
	return request({
		url: '/api/blade-module/filestemplate/list',
		method: 'get',
		params: params
	})
}

//一次抽样方案查询样本量，接收数，拒收数


export const findChouyangfanganOne = (params) => {
	return request({
		url: '/api/blade-module/chouyangfanganone/findChouyangfanganOne',
		method: 'get',
		params: params
	})
}
//二次抽样方案查询样本量，接收数，拒收数

export const findChouyangfanganTwo = (params) => {
	return request({
		url: '/api/blade-module/chouyangfangantwo/findChouyangfanganTwo',
		method: 'get',
		params: params
	})
}
//多次抽样方案查询样本量，接收数，拒收数
export const findChouyangfanganMany = (params) => {
	return request({
		url: '/api/blade-module/chouyangfanganmany/findChouyangfanganMany',
		method: 'get',
		params: params
	})
}

// 查询样本量字码
export const findYangbenliangZima = (params) => {
	return request({
		url: '/api/blade-module/yangbenliangzima/findYangbenliangZima',
		method: 'get',
		params: params
	})
}

// weboffice
export const getappToken = (params) => {
	return request({
		url: '/api/blade-module/weboffice/url',
		method: 'get',
		params: params
	})
}
//  申请解密
export const applyDecrypt = (params) => {
	return request({
		url: '/api/blade-module/decrypt/applyDecrypt',
		method: 'post',
		data: params
	})
}

//  获取系统封面
export const generateImage = (params,url) => {
	return request({
		url: `/api/blade-module/${url}/generateImage`,
		method: 'post',
		data: params
	})
}
//  产品分类导入
export const importproductcategory = (params) => {
	return request({
		url: `/api/blade-module/productcategory/importData`,
		method: 'post',
		data: params
	})
}

//  常用菜单
export const oftenmenuSubmit = (params) => {
	return request({
		url: `/api/blade-module/oftenmenu/submit`,
		method: 'post',
		data: params
	})
}

//  常用菜单列表
export const oftenmenuList = (params) => {
	return request({
		url: `/api/blade-module/oftenmenu/list`,
		method: 'get',
		data: params
	})
}

